# initialize Edge Redis connection settings
REDIS_HOST = "192.168.1.203"
REDIS_PORT = 6379
REDIS_DB = 0
PASSWORD = "Nuaacs301"

# initialize Cloud Redis connection settings
Cloud_REDIS_HOST = "192.168.1.203"
Cloud_REDIS_PORT = 6379
Cloud_REDIS_DB = 1
Cloud_PASSWORD = "Nuaacs301"

# initialize constants used to control image spatial dimensions and
# ResNet152 info
ResNet_IMAGE_WIDTH = 224
ResNet_IMAGE_HEIGHT = 224
ResNet_IMAGE_CHANS = 3
ResNet_IMAGE_DTYPE = "float32"
ResNet_Layers = 56
ResNet_CLOUD_QUEUE = "res_cloud"

# AlexNet info
AlexNet_IMAGE_WIDTH = 224
AlexNet_IMAGE_HEIGHT = 224
AlexNet_IMAGE_CHANS = 3
AlexNet_IMAGE_DTYPE = "float32"
AlexNet_Layers = 24
AlexNet_CLOUD_QUEUE = "alex_cloud"

# VggNet info
VggNet_IMAGE_WIDTH = 224
VggNet_IMAGE_HEIGHT = 224
VggNet_IMAGE_CHANS = 3
VggNet_IMAGE_DTYPE = "float32"
VggNet_Layers = 22
VggNet_CLOUD_QUEUE = "vgg_cloud"

# initialize constants used for server queuing
IMAGE_QUEUE = {0: "resnet_queue", 1: "alexnet_queue", 2: "vggnet_queue"}
CLOUD_QUEUE = {0: ResNet_CLOUD_QUEUE, 1: AlexNet_CLOUD_QUEUE, 2: VggNet_CLOUD_QUEUE}
IMAGE_DTYPE = {0: ResNet_IMAGE_DTYPE, 1: AlexNet_IMAGE_DTYPE, 2: VggNet_IMAGE_DTYPE}
IMAGE_WIDTH = {0: ResNet_IMAGE_WIDTH, 1: AlexNet_IMAGE_WIDTH, 2: VggNet_IMAGE_WIDTH}
IMAGE_HEIGHT = {0: ResNet_IMAGE_HEIGHT, 1: AlexNet_IMAGE_HEIGHT, 2: VggNet_IMAGE_HEIGHT}
IMAGE_CHANS = {0: ResNet_IMAGE_CHANS, 1: AlexNet_IMAGE_CHANS, 2: VggNet_IMAGE_CHANS}
BATCH_SIZE = 32
SERVER_SLEEP = 0.25
CLIENT_SLEEP = 0.25